package com.svse.designPattern.structure.decorator.test;

import com.svse.designPattern.structure.decorator.component.Component;
import com.svse.designPattern.structure.decorator.concretecomponent.ConcreteComponent;
import com.svse.designPattern.structure.decorator.concretedecorator.ConcreteDecorator;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/2 8:31
 */
public class test01 {
    public static void main(String[] args) {
        Component  component1=new ConcreteComponent();
        component1.operation();
        System.out.println("---------------------------------");
        ConcreteDecorator  component2=new ConcreteDecorator(component1);
        component2.operation();
    }
}
